Search results

17 packages found

ECMAScript spec-compliant polyfill/shim for `globalThis`

published version 1.0.4, a year ago960 dependents licensed under $MIT
143,611,598

Global namespace without polluting the global scope

published version 1.0.0, 4 years ago8 dependents licensed under $ISC
4,038,215

A globalThis polyfill.

published version 0.0.2, 6 years ago16 dependents licensed under $MIT
64,437

Polyfill foe globalThis

published version 1.0.0, 3 years ago0 dependents licensed under $MIT
5,999

ESM compatible randomUUID polyfill

published version 1.0.2, a year ago0 dependents licensed under $MIT
4,785

Provides access to `globalThis`, ensuring cross-platform compatibility, including browsers (`window`), Node.js (`global`), and Web Workers (`self`).

published version 5.5.3, a month ago5 dependents licensed under $AGPL-3.0-only
397

🌍 Returns the global object regardless of the environment.

published version 2.1.0, 7 months ago2 dependents licensed under $MIT
156

Ponyfill for globalThis

published version 4.0.0, 2 years ago8 dependents licensed under $Unlicense
78

Don't let TC39 use globalThis

published version 1.0.0, 7 years ago0 dependents licensed under $MIT
97

Get globalThis.

published version 1.1.2, 6 years ago0 dependents licensed under $MIT
19

The global variable integration for Astro 🌐

published version 0.0.14, 3 months ago0 dependents licensed under $MIT
15

conf-global 提供了表示全局对象的 globalThis 兼容处理,在没有全局变量 globalThis 的情况下,会自动创建该全局变量

published version 1.0.0, 5 years ago0 dependents licensed under $ISC
12

Polyfills the globalThis meta-object reference for Typescript/Javascript

published version 0.0.1, 6 years ago0 dependents licensed under $MIT
13

Global property globalThis polyfill

published version 0.1.0, a year ago0 dependents licensed under $MIT
6

get, set global values in any js env

published version 2.0.1, 2 years ago0 dependents licensed under $MIT
5

just use self. adds self to environments that don't already have it.

published version 1.0.1, 6 years ago0 dependents licensed under $MIT
3

Get the correct global in browser, node & worker

published version 1.0.1, 5 years ago0 dependents licensed under $MIT
1